<?php 
	if(isset($properties['width']))
		$width = $properties['width'];
	else
		$width = 449;
	if(isset($properties['height']))
		$height = $properties['height'];
	else
		$height = 334;
?>
<a class="thickbox" href="#TB_inline?height=<?php echo $height;?>&width=<?php echo $width;?>&inlineId=video-modal-<?php echo $id;?>"><img src="<?php echo $html->url('/uploads/'.$thumb);?>"></a>

<div id="video-modal-<?php echo $id;?>" style="display:none;">
	<span class="videoPreview" id="video-<?php echo $id;?>"><a href="http://www.macromedia.com/go/getflashplayer"><?php echo(__('Get the Flash Player'));?></a><?php echo(__('to see this player.'));?></span>
	<script type="text/javascript" src="<?php echo $html->url('/files/video_player/swfobject.js');?>"></script>
	<script type="text/javascript">
		var s1 = new SWFObject("<?php echo $html->url('/files/video_player/mediaplayer.swf');?>","mediaplayer","<?php echo $width;?>","<?php echo $height;?>","8");
		s1.addParam("allowfullscreen","true");
		s1.addVariable("width","<?php echo $width;?>");
		s1.addVariable("height","<?php echo $height;?>");
		s1.addVariable("image","<?php echo $html->url('/uploads/'.$thumb);?>");
		s1.addVariable("file","<?php echo $html->url('/uploads/'.$src);?>");
		s1.write("video-<?php echo $id;?>");
	</script>
</div>